package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.DeclarationCreateValidate;
import com.mdd.admin.validate.DeclarationUpdateValidate;
import com.mdd.admin.validate.DeclarationSearchValidate;
import com.mdd.admin.vo.DeclarationListedVo;
import com.mdd.admin.vo.DeclarationDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 申报条件服务接口类
 * @author LikeAdmin
 */
public interface IDeclarationService {

    /**
     * 申报条件列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<DeclarationListedVo>
     */
    PageResult<DeclarationListedVo> list(PageValidate pageValidate, DeclarationSearchValidate searchValidate);

    /**
     * 申报条件详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return DeclarationDetailVo
     */
    DeclarationDetailVo detail(Integer id);

    /**
     * 申报条件新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(DeclarationCreateValidate createValidate);

    /**
     * 申报条件编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(DeclarationUpdateValidate updateValidate);

    /**
     * 申报条件删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
